package org.fastsyncer.manager.framework;

import java.io.File;

import org.fastsyncer.common.constant.CommonConstant;
import org.fastsyncer.common.util.ApplicationUtil;
import org.fastsyncer.manager.util.FileUtil;

public abstract class AbstractDirectory {

    /**
     * 存储路径
     */
    protected static String storePath = null;
    
    static {
        File file = new File(ApplicationUtil.getKey(CommonConstant.MANAGER_STORE_PATH));
        if (null != file) {
            storePath = file.getAbsolutePath();
        }
        FileUtil.createDirIfNotExist(storePath);
    }
    
}
